#include "Com_h.h"

// {B3172C6E-7413-4543-9A31-A89D2014CE12}
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
MIDL_DEFINE_GUID(CLSID, CLSID_TEST, 0xb3172c6e, 0x7413, 0x4543, 0x9a, 0x31, 0xa8, 0x9d, 0x20, 0x14, 0xce, 0x12);


int main()
{
    HRESULT hResult;
    ITest* lpITest = nullptr;

    CoInitialize(nullptr);

    hResult = CoGetClassObject(CLSID_TEST, CLSCTX_LOCAL_SERVER, nullptr, 
        IID_ITest, (void**)&lpITest);
    if (lpITest)
    {
        lpITest->Test();
        lpITest->Release();
    }


    CoUninitialize();

    return 0;
}